import request from '@/utils/request'

// 查询财务记账项目列表
export function listClassificationItem(query) {
  return request({
    url: '/fms/classificationItem/list',
    method: 'get',
    params: query
  })
}

// 查询财务记账项目详细
export function getClassificationItem(id) {
  return request({
    url: '/fms/classificationItem/' + id,
    method: 'get'
  })
}

// 新增财务记账项目
export function addClassificationItem(data) {
  return request({
    url: '/fms/classificationItem',
    method: 'post',
    data: data
  })
}

// 修改财务记账项目
export function updateClassificationItem(data) {
  return request({
    url: '/fms/classificationItem',
    method: 'put',
    data: data
  })
}


// 修改财务记账项目
export function auditClassificationItem(data) {
  return request({
    url: '/fms/classificationItem/audit',
    method: 'put',
    data: data
  })
}

// 删除财务记账项目
export function delClassificationItem(id) {
  return request({
    url: '/fms/classificationItem/' + id,
    method: 'delete'
  })
}




